 <div class="modal-content">
		 <div class="modal-header">
		    <button type="button" class="close" 
		       data-dismiss="modal" aria-hidden="true">
		          &times;
		    </button>
		    <h4 class="modal-title" id="myModalLabel">
		    	添加相册
		    </h4>
		 </div>
		 <div class="modal-body">
			<form class="form-horizontal" id="albumForm" role="form">
	           <input type="hidden" name="id" value="${album.id}"/>
			   <div class="form-group">
			      <label class="col-sm-2 control-label">相册标题</label>
			      <div class="col-sm-10">
			         <input class="form-control" type="text" value="${album.albumName}" name="albumName" placeholder="请输入博客标题"/>
			      </div>
			   </div>
			   <div class="form-group">
		         <label for="disabledTextInput"  class="col-sm-2 control-label">
		        	    排序
		         </label>
		         <div class="col-sm-10">
		            <input type="text"  name="albumOrder" value="${album.albumOrder}" class="form-control" placeholder="请输入排序"/>
		         </div>

			   </div>
			   <div class="form-group">
 			      <label for="inputPassword" class="col-sm-2 control-label">
			         	状态
			      </label>
			      <div class="col-sm-10">
	  		          <select id="disabledSelect" name="visible" class="form-control">
			               <option value="1" <#if article.visible ==1> selected</#if>>可见</option>
			               <option value="0" <#if article.visible ==0> selected</#if>>不可见</option>
			           </select>
		           </div>
			   </div>
			   

		      <div class="form-group">
  		         <label for="disabledTextInput"  class="col-sm-2 control-label">
		        	    创建日期
		         </label>
 		         <label for="disabledTextInput"  class="col-sm-10 control-label" style="text-align:center">
 		         	${album.createDate}
 		         	<#if album.id==null>—</#if>
		         </label>
		      </div>
	
			</form>
		 </div>
		 <div class="modal-footer">
		    <button type="button" class="btn btn-default" 
		       data-dismiss="modal">关闭
		    </button>
		    <button type="button" class="btn btn-primary" onclick="saveArticleFn();">
		      	 提交更改
		    </button>
		 </div>
  </div>
  
  
  <script>
var saveArticleFn = function()
{
	$.ajax({
		url:'${request.contextPath}/album/addOrSaveAlbum.htm',
		type:'post',
		dataType:'json',
		cache:false,
		processData:true,
		data:$('#albumForm').serialize(),
		success:function(data)
		{
			
			alert(data.msg);
			if(data.success==1)
			{
				$('#addEditModal').modal('hide');
				queryAlbumByOption();
			}	
		}
	});
}
  </script>
